package com.smart.client.core.rule;

import com.smart.client.mems.MemsResult;
import com.smart.client.core.AlarmRuleType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import static com.smart.client.core.rule.AbstractRuleHandler.RULE_HANDLER_SUFFIX;

/**
 * Created By Li Jiaxi
 * <br/>Date: 2023/4/14 11:09
 * <br/>Description:
 */
@Slf4j
@Component(value = AlarmRuleType.MEMS_SIGN + RULE_HANDLER_SUFFIX)
public class MemsRuleHandler extends DefaultRuleHandler<MemsResult> {

    /**
     * MEMS 数据上报的topic值，用于区分
     */
    public static final String MEMS_TOPIC = "dataReportTopic";

    @Override
    public void insertRecord(MemsResult memsResult) {
        log.debug("插入 MEMS 记录表");
    }

    @Override
    protected void verify(MemsResult memsResult) {
        log.debug(" MEMS 校验");
    }
}
